import { requestClient } from '#/api/request';

/**
 * 地图配置相关API
 */

/**
 * 获取地图配置
 */
export async function getMapConfig() {
  return requestClient.get('/infra/config/map');
}

/**
 * 更新地图配置
 */
export async function updateMapConfig(data: any) {
  return requestClient.put('/infra/config/map', data);
}

/**
 * 获取地图配置列表
 */
export async function listMapConfig() {
  return requestClient.get('/infra/config/list', {
    params: { category: 'MAP' },
  });
}

/**
 * 批量更新地图配置
 */
export async function updateBatchMapConfig(data: any[]) {
  return requestClient.put('/infra/config/batch', data);
}
